package cn.theten52.demo.patterns.design.creation.factory.asyn;

import cn.theten52.demo.patterns.design.creation.factory.abstract1.CarBody;

/**
 * 构造耗时较长的车身
 *
 * @author wangjin
 * @date 2020/12/27
 */
public class LongTimeCarBody implements CarBody {
    public LongTimeCarBody() {
        System.out.println("开始生产车身");
        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("车身生产完毕");
    }
}
